package com.zimi.mapper;

import com.zimi.model.WfSystaskKey;
import com.zimi.model.WfSystaskKeyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WfSystaskKeyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(WfSystaskKey record);

    int insertSelective(WfSystaskKey record);

    WfSystaskKey selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(WfSystaskKey record);

    int updateByPrimaryKey(WfSystaskKey record);

    List<WfSystaskKey> selectAll(WfSystaskKey record);

    List<WfSystaskKeyVO> selectMyDoneTask(WfSystaskKey record);

    @Select("SELECT LAST_INSERT_ID() as id")
    int lastInsertId();

}